Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 6 - Types, Constants, and Global Functions / Types and Constants
Cyberdog Items


Comparison Types

The enumeration CDCompareType specifies the possible outcomes of the CyberItem::Compare method (page 230), which compares two Cyberdog items according to an order defined by the Cyberdog item developer. For example, a developer implementing a Cyberdog item subclass might order Cyberdog items of the subclass by performing an ASCII comparison of their URL strings.

enum CDCompareType {
   kCDCompareLessThan,
   kCDCompareEqual,
   kCDCompareGreaterThan
};
Constants of this type

kCDCompareLessThan
The receiving Cyberdog item occurs earlier in the order than the other Cyberdog item.
kCDCompareEqual
The receiving Cyberdog item and the other Cyberdog item are equal.
kCDCompareGreaterThan
The receiving Cyberdog item occurs later in the order than the other Cyberdog item.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help